package com.example.service;

import com.example.domain.po.Orders;
import com.example.domain.vo.OrderVo;
import com.example.util.PageBean;

import java.util.List;

public interface OrdersService {

    PageBean<OrderVo> list(Integer pageNum, Integer pageSize, Integer status, String startTime, String endTime, Integer userId);

    Orders findById(Integer id);

    void cancelOrder(Orders order);

    Orders selectByOrderNo(String orderNo);

    void updateById(Orders orders);

    Orders getByUidAndCid(Integer cId, Integer uId);

    Long add(Orders orders);



    Orders getByOrderNo(Long orderNo);

    List<Orders> findUnpaidOrdersOver30Minutes();

}
